from flask import Flask
from handlers.build_chroma import build_chroma_bp
from handlers.ask import ask_bp
from flask_cors import CORS


app = Flask(__name__)
CORS(app, origins="*", methods=["GET", "POST"], allow_headers=["Content-Type"])

# 注册蓝图
app.register_blueprint(build_chroma_bp)
app.register_blueprint(ask_bp)

if __name__ == "__main__":
    print("app started")
    app.run(debug=True)
